import request from '@/utils/request'

// 查询喇叭使用记录列表
export function listSpeakerLog(query) {
  return request({
    url: '/biz/speakerLog/list',
    method: 'get',
    params: query
  })
}

// 查询喇叭使用记录详细
export function getSpeakerLog(id) {
  return request({
    url: '/biz/speakerLog/' + id,
    method: 'get'
  })
}

// 新增喇叭使用记录
export function addSpeakerLog(data) {
  return request({
    url: '/biz/speakerLog',
    method: 'post',
    data: data
  })
}

// 修改喇叭使用记录
export function updateSpeakerLog(data) {
  return request({
    url: '/biz/speakerLog',
    method: 'put',
    data: data
  })
}

// 删除喇叭使用记录
export function delSpeakerLog(id) {
  return request({
    url: '/biz/speakerLog/' + id,
    method: 'delete'
  })
}
